[INFO] cloning repository https://github.com/jamesray1/write-to-file
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jamesray1/write-to-file" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjamesray1%2Fwrite-to-file", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjamesray1%2Fwrite-to-file'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] a69110a6188551e3e8a3501404a995c891cb471d
[INFO] checking jamesray1/write-to-file against try#e79c9799a5ffd821c63b799b91e8aa87fd7ebb1e for pr-101680
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjamesray1%2Fwrite-to-file" "/workspace/builds/worker-3/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/jamesray1/write-to-file on toolchain e79c9799a5ffd821c63b799b91e8aa87fd7ebb1e
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+e79c9799a5ffd821c63b799b91e8aa87fd7ebb1e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/jamesray1/write-to-file
[INFO] finished tweaking git repo https://github.com/jamesray1/write-to-file
[INFO] tweaked toml for git repo https://github.com/jamesray1/write-to-file written to /workspace/builds/worker-3/source/Cargo.toml
[INFO] crate git repo https://github.com/jamesray1/write-to-file already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+e79c9799a5ffd821c63b799b91e8aa87fd7ebb1e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+e79c9799a5ffd821c63b799b91e8aa87fd7ebb1e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 887a540ad4e78901969c20b71dd44b3b028dc60b53b5760816e1f3f8fb090e6c
[INFO] running `Command { std: "docker" "start" "-a" "887a540ad4e78901969c20b71dd44b3b028dc60b53b5760816e1f3f8fb090e6c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "887a540ad4e78901969c20b71dd44b3b028dc60b53b5760816e1f3f8fb090e6c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "887a540ad4e78901969c20b71dd44b3b028dc60b53b5760816e1f3f8fb090e6c", kill_on_drop: false }`
[INFO] [stdout] 887a540ad4e78901969c20b71dd44b3b028dc60b53b5760816e1f3f8fb090e6c
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+e79c9799a5ffd821c63b799b91e8aa87fd7ebb1e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] edb72ef5171b7663d8891faed00b1028ccc223d7a32a7fcda9870eec996b5e8b
[INFO] running `Command { std: "docker" "start" "-a" "edb72ef5171b7663d8891faed00b1028ccc223d7a32a7fcda9870eec996b5e8b", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Checking write-to-file v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0425]: cannot find value `default_path_as_string` in this scope
[INFO] [stdout]   --> src/main.rs:94:13
[INFO] [stdout]    |
[INFO] [stdout] 94 |             default_path_as_string);
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `default_path_as_string` in this scope
[INFO] [stdout]   --> src/main.rs:94:13
[INFO] [stdout]    |
[INFO] [stdout] 94 |             default_path_as_string);
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/main.rs:33:23
[INFO] [stdout]    |
[INFO] [stdout] 33 |     -> Result<(), Box<Error + Send + Sync>>
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 33 -     -> Result<(), Box<Error + Send + Sync>>
[INFO] [stdout] 33 +     -> Result<(), Box<dyn Error + Send + Sync>>
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/main.rs:33:23
[INFO] [stdout]    |
[INFO] [stdout] 33 |     -> Result<(), Box<Error + Send + Sync>>
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 33 -     -> Result<(), Box<Error + Send + Sync>>
[INFO] [stdout] 33 +     -> Result<(), Box<dyn Error + Send + Sync>>
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: `P` doesn't implement `std::fmt::Display`
[INFO] [stdout]   --> src/main.rs:80:30
[INFO] [stdout]    |
[INFO] [stdout] 32 | pub fn prompt_write_object_to_file<'a, T: Debug, P>(object: &T, default_path: Option<P>) 
[INFO] [stdout]    |                                                  - method `to_string` not found for this type parameter
[INFO] [stdout] ...
[INFO] [stdout] 80 |                 Some(v) => v.to_string(),
[INFO] [stdout]    |                              ^^^^^^^^^ `P` cannot be formatted with the default formatter
[INFO] [stdout]    |
[INFO] [stdout]    = note: the following trait bounds were not satisfied:
[INFO] [stdout]            `P: std::fmt::Display`
[INFO] [stdout]            which is required by `P: ToString`
[INFO] [stdout] help: consider restricting the type parameter to satisfy the trait bound
[INFO] [stdout]    |
[INFO] [stdout] 37 |         P: PartialEq, P: std::fmt::Display
[INFO] [stdout]    |                     ++++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0618]: expected function, found `(String, usize)`
[INFO] [stdout]   --> src/main.rs:83:41
[INFO] [stdout]    |
[INFO] [stdout] 51 |         let get_input = {
[INFO] [stdout]    |             --------- `get_input` has type `(String, usize)`
[INFO] [stdout] ...
[INFO] [stdout] 83 |                     (default_path, _) = get_input();
[INFO] [stdout]    |                                         ^^^^^^^^^--
[INFO] [stdout]    |                                         |
[INFO] [stdout]    |                                         call expression requires function
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: `P` doesn't implement `std::fmt::Display`
[INFO] [stdout]   --> src/main.rs:80:30
[INFO] [stdout]    |
[INFO] [stdout] 32 | pub fn prompt_write_object_to_file<'a, T: Debug, P>(object: &T, default_path: Option<P>) 
[INFO] [stdout]    |                                                  - method `to_string` not found for this type parameter
[INFO] [stdout] ...
[INFO] [stdout] 80 |                 Some(v) => v.to_string(),
[INFO] [stdout]    |                              ^^^^^^^^^ `P` cannot be formatted with the default formatter
[INFO] [stdout]    |
[INFO] [stdout]    = note: the following trait bounds were not satisfied:
[INFO] [stdout]            `P: std::fmt::Display`
[INFO] [stdout]            which is required by `P: ToString`
[INFO] [stdout] help: consider restricting the type parameter to satisfy the trait bound
[INFO] [stdout]    |
[INFO] [stdout] 37 |         P: PartialEq, P: std::fmt::Display
[INFO] [stdout]    |                     ++++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0618]: expected function, found `(String, usize)`
[INFO] [stdout]   --> src/main.rs:83:41
[INFO] [stdout]    |
[INFO] [stdout] 51 |         let get_input = {
[INFO] [stdout]    |             --------- `get_input` has type `(String, usize)`
[INFO] [stdout] ...
[INFO] [stdout] 83 |                     (default_path, _) = get_input();
[INFO] [stdout]    |                                         ^^^^^^^^^--
[INFO] [stdout]    |                                         |
[INFO] [stdout]    |                                         call expression requires function
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: can't compare `()` with `Option<_>`
[INFO] [stdout]   --> src/main.rs:89:40
[INFO] [stdout]    |
[INFO] [stdout] 89 |         while check_valid_default_path == None {
[INFO] [stdout]    |                                        ^^ no implementation for `() == Option<_>`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `PartialEq<Option<_>>` is not implemented for `()`
[INFO] [stdout]    = help: the following other types implement trait `PartialEq<Rhs>`:
[INFO] [stdout]              ()
[INFO] [stdout]              (A, Z, Y, X, W, V, U, T)
[INFO] [stdout]              (B, A, Z, Y, X, W, V, U, T)
[INFO] [stdout]              (C, B, A, Z, Y, X, W, V, U, T)
[INFO] [stdout]              (D, C, B, A, Z, Y, X, W, V, U, T)
[INFO] [stdout]              (E, D, C, B, A, Z, Y, X, W, V, U, T)
[INFO] [stdout]              (T,)
[INFO] [stdout]              (U, T)
[INFO] [stdout]            and 5 others
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: can't compare `()` with `Option<_>`
[INFO] [stdout]   --> src/main.rs:89:40
[INFO] [stdout]    |
[INFO] [stdout] 89 |         while check_valid_default_path == None {
[INFO] [stdout]    |                                        ^^ no implementation for `() == Option<_>`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `PartialEq<Option<_>>` is not implemented for `()`
[INFO] [stdout]    = help: the following other types implement trait `PartialEq<Rhs>`:
[INFO] [stdout]              ()
[INFO] [stdout]              (A, Z, Y, X, W, V, U, T)
[INFO] [stdout]              (B, A, Z, Y, X, W, V, U, T)
[INFO] [stdout]              (C, B, A, Z, Y, X, W, V, U, T)
[INFO] [stdout]              (D, C, B, A, Z, Y, X, W, V, U, T)
[INFO] [stdout]              (E, D, C, B, A, Z, Y, X, W, V, U, T)
[INFO] [stdout]              (T,)
[INFO] [stdout]              (U, T)
[INFO] [stdout]            and 5 others
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the trait bound `Option<P>: AsRef<Path>` is not satisfied
[INFO] [stdout]    --> src/main.rs:93:30
[INFO] [stdout]     |
[INFO] [stdout] 93  |         write_object_to_file(default_path, object).expect("Can't write {:#?} to {:#?}", object, 
[INFO] [stdout]     |         -------------------- ^^^^^^^^^^^^ the trait `AsRef<Path>` is not implemented for `Option<P>`
[INFO] [stdout]     |         |
[INFO] [stdout]     |         required by a bound introduced by this call
[INFO] [stdout]     |
[INFO] [stdout] note: required by a bound in `write_object_to_file`
[INFO] [stdout]    --> src/main.rs:103:14
[INFO] [stdout]     |
[INFO] [stdout] 102 | pub fn write_object_to_file<T, P>(input_path: P, object: T) -> Result<(), IoError>
[INFO] [stdout]     |        -------------------- required by a bound in this
[INFO] [stdout] 103 |     where P: AsRef<Path>,
[INFO] [stdout]     |              ^^^^^^^^^^^ required by this bound in `write_object_to_file`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the trait bound `Option<P>: AsRef<Path>` is not satisfied
[INFO] [stdout]    --> src/main.rs:93:30
[INFO] [stdout]     |
[INFO] [stdout] 93  |         write_object_to_file(default_path, object).expect("Can't write {:#?} to {:#?}", object, 
[INFO] [stdout]     |         -------------------- ^^^^^^^^^^^^ the trait `AsRef<Path>` is not implemented for `Option<P>`
[INFO] [stdout]     |         |
[INFO] [stdout]     |         required by a bound introduced by this call
[INFO] [stdout]     |
[INFO] [stdout] note: required by a bound in `write_object_to_file`
[INFO] [stdout]    --> src/main.rs:103:14
[INFO] [stdout]     |
[INFO] [stdout] 102 | pub fn write_object_to_file<T, P>(input_path: P, object: T) -> Result<(), IoError>
[INFO] [stdout]     |        -------------------- required by a bound in this
[INFO] [stdout] 103 |     where P: AsRef<Path>,
[INFO] [stdout]     |              ^^^^^^^^^^^ required by this bound in `write_object_to_file`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 1 argument but 3 arguments were supplied
[INFO] [stdout]   --> src/main.rs:93:52
[INFO] [stdout]    |
[INFO] [stdout] 93 |         write_object_to_file(default_path, object).expect("Can't write {:#?} to {:#?}", object, 
[INFO] [stdout]    |                                                    ^^^^^^                               ------ argument of type `&T` unexpected
[INFO] [stdout] 94 |             default_path_as_string);
[INFO] [stdout]    |             ---------------------- argument unexpected
[INFO] [stdout]    |
[INFO] [stdout] note: associated function defined here
[INFO] [stdout] help: remove the extra arguments
[INFO] [stdout]    |
[INFO] [stdout] 93 |         write_object_to_file(default_path, object).expect("Can't write {:#?} to {:#?}");
[INFO] [stdout]    |                                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 1 argument but 3 arguments were supplied
[INFO] [stdout]   --> src/main.rs:93:52
[INFO] [stdout]    |
[INFO] [stdout] 93 |         write_object_to_file(default_path, object).expect("Can't write {:#?} to {:#?}", object, 
[INFO] [stdout]    |                                                    ^^^^^^                               ------ argument of type `&T` unexpected
[INFO] [stdout] 94 |             default_path_as_string);
[INFO] [stdout]    |             ---------------------- argument unexpected
[INFO] [stdout]    |
[INFO] [stdout] note: associated function defined here
[INFO] [stdout] help: remove the extra arguments
[INFO] [stdout]    |
[INFO] [stdout] 93 |         write_object_to_file(default_path, object).expect("Can't write {:#?} to {:#?}");
[INFO] [stdout]    |                                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 1 argument but 3 arguments were supplied
[INFO] [stdout]   --> src/main.rs:97:46
[INFO] [stdout]    |
[INFO] [stdout] 97 |         write_object_to_file(&input, object).expect("Can't write {:#?} to {:#?}", object, &input);
[INFO] [stdout]    |                                              ^^^^^^                               ------  ------ argument of type `&String` unexpected
[INFO] [stdout]    |                                                                                   |
[INFO] [stdout]    |                                                                                   argument of type `&T` unexpected
[INFO] [stdout]    |
[INFO] [stdout] note: associated function defined here
[INFO] [stdout] help: remove the extra arguments
[INFO] [stdout]    |
[INFO] [stdout] 97 |         write_object_to_file(&input, object).expect("Can't write {:#?} to {:#?}");
[INFO] [stdout]    |                                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 1 argument but 3 arguments were supplied
[INFO] [stdout]   --> src/main.rs:97:46
[INFO] [stdout]    |
[INFO] [stdout] 97 |         write_object_to_file(&input, object).expect("Can't write {:#?} to {:#?}", object, &input);
[INFO] [stdout]    |                                              ^^^^^^                               ------  ------ argument of type `&String` unexpected
[INFO] [stdout]    |                                                                                   |
[INFO] [stdout]    |                                                                                   argument of type `&T` unexpected
[INFO] [stdout]    |
[INFO] [stdout] note: associated function defined here
[INFO] [stdout] help: remove the extra arguments
[INFO] [stdout]    |
[INFO] [stdout] 97 |         write_object_to_file(&input, object).expect("Can't write {:#?} to {:#?}");
[INFO] [stdout]    |                                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0600]: cannot apply unary operator `!` to type `Result<(), std::io::Error>`
[INFO] [stdout]    --> src/main.rs:118:9
[INFO] [stdout]     |
[INFO] [stdout] 118 |         assert!(write_object_to_file("foo", "~/foo.txt"), ())
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot apply unary operator `!`
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 7 previous errors; 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0425, E0599, E0618.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0061`.
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 8 previous errors; 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0425, E0599, E0600, E0618.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0061`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `write-to-file` due to 9 previous errors; 1 warning emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `write-to-file` due to 8 previous errors; 1 warning emitted
[INFO] running `Command { std: "docker" "inspect" "edb72ef5171b7663d8891faed00b1028ccc223d7a32a7fcda9870eec996b5e8b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "edb72ef5171b7663d8891faed00b1028ccc223d7a32a7fcda9870eec996b5e8b", kill_on_drop: false }`
[INFO] [stdout] edb72ef5171b7663d8891faed00b1028ccc223d7a32a7fcda9870eec996b5e8b
